RAIS  3.2
C:/Projekte/RAIS/common/Constants.cs
Go to the documentation of this file.
00001 
00027 using System;
00028 using System.Collections.Generic;
00029 using System.Text;
00030 
00031 namespace RAIS.Common
00032 {
00036     public class Constants
00037     {
00041         public const string DEFAULT_LANGUAGE = "English (Internal System)";
00045         public const string SEPARATOR = ".";
00046         #region Predefined restrictions
00047 
00050         //public const string ALL_CATEGORIES = "All Categories";
00051                 public const string ALL_CATEGORIES = "All Main menus";
00055         //public const string ALL_SUBCATEGORIES = "All Subcategories";
00056                 public const string ALL_SUBCATEGORIES = "All Submenus";
00060                 //public const string ALL_MASKS = "All Masks";
00061                 public const string ALL_MASKS = "All Menu items";
00065         public const string ALL_REGIONS = "All Regions";
00069         public const string ALL_DISTRICTS = "All Districts";
00073         public const string ALL_FACILITIES = "All Facilities";
00074 
00075 
00079         public const string CATEGORY_NAME_ADMINISTRATION = "Administration";
00083         public const string CATEGORY_NAME_REGULATORY_SYSTEM = "Regulatory System";
00087         public const string CATEGORY_NAME_INPUT = "Input";
00091         public const string CATEGORY_NAME_STATISTICS = "Statistics";
00095         public const string CATEGORY_NAME_MESSAGEBOX = "Message Box";
00099         public const string CATEGORY_NAME_QUERY = "Query";
00103         public const string CATEGORY_NAME_TOOLS = "Tools";
00104         #endregion
00105 
00109                 public const string PK_PARAMETER_NAME = "PK";
00113                 public const string USER_PARAMETER_NAME = "User";
00117                 public const string FACILITY_PARAMETER_NAME = "Facility";
00121                 public const string DEPARTMENT_PARAMETER_NAME = "Department";
00125                 public const string NON_COMPLIANCE_MAJOR_CATEGORY_PARAMETER_NAME = "NonComplianceMajorCategory";
00129                 public const string NON_COMPLIANCE_CATEGORY_PARAMETER_NAME = "Category";
00133                 public const string FACILITY_TABLE_NAME = "Facility";
00137                 public const string FACILITY_HISTORY_TABLE_NAME = "Facility History";
00141                 public const string DEPARTMENT_TABLE_NAME = "Department";
00145                 public const string DEPARTMENT_HISTORY_TABLE_NAME = "Department History";
00149                 public const string AUTHORIZATION_TABLE_NAME = "Authorization";
00153                 public const string AUTHORIZATION_TYPE_FIELD_NAME = "Authorization Type";
00157                 public const string AUTHORIZATION_PROCESS_NUMBER_FIELD_NAME = "Authorization Process Number";
00161                 public const string AUTHORIZATION_STATUS_NUMBER_FIELD_NAME = "Authorization Status No";
00166         public const string ENFORCEMENT_PROCESS_NUMBER_FIELD_NAME = "Enforcement Process No";
00170         public const string ENFORCEMENT_STATUS_NUMBER_FIELD_NAME = "Enforcement Status No";
00175                 public const string PROTECTOR_PREFIX = "Protector";
00179                 public const string EVALUATOR_PREFIX = "Evaluator";
00183                 public const string USER_FK_FIELD_NAME = "FK User ID";
00187                 public const string VALIDATION_STATUS_FK_FIELD_NAME = "FK Validation Status ID";
00191                 public const string TIME_STAMP_FIELD_NAME = "RAIS_TIME_STAMP";
00195                 public const string NON_COMPLIANCE_FIELD_NAME = "Non-Compliance";
00199                 public const string DATES_RANGE_FILTER_NAME = "DatesRange";
00203                 public const string DATE_FROM_LABEL_TEXT = "Starting from";
00207                 public const string DATE_UNTIL_LABEL_TEXT = "until";
00211                 public const int SMALL_FIELD_MAX_LENGTH = 50;
00215                 public const int MEDIUM_FIELD_MAX_LENGTH = 128;
00219                 public const int LARGE_FIELD_MAX_LENGTH = 256;
00223                 public const int MEMO_FIELD_MAX_LENGTH = 2000;
00227                 public const string SORT_ORDER_ASCENDING = "ASC";
00231                 public const string SORT_ORDER_DESCENDING = "DESC";
00235                 public const string SORT_EXPRESSION = "SourceText";
00239                 public const string HISTORY_TABLE_SUFFIX = " History";
00243                 public const string EXISTING_PERMISSION_CHARACTER = "+";
00247                 public const string NOT_EXISTING_PERMISSION_CHARACTER = "-";
00248 
00249 
00253         public const string ALL_FACILITIES_UNKNOWN = "[Unknown] (All Facilities)";
00254         }
00258     public class Messages
00259     {
00260         #region Messages
00261 
00264         public const string LOGIN_ERROR_MESSAGE = "Login failed";
00268                 public const string ACCOUNT_REQUEST_SAVED_MESSAGE = "The account request has been successfully sent to the administrator";
00272         public const string USER_EXISTS_MESSAGE = "The specified user name already exists";
00276         public const string USER_NOT_FOUND_MESSAGE = "The specified user does not exist";
00280         public const string USER_COMPLETE_NAME_MISSING = "User's complete name is not specified";
00284         public const string USER_EMAIL_MISSING = "User's e-mail address is not specified (may not be left blank)";
00288                 public const string USER_DATA_ROLE_FACILIY_MISSING = "For an active user data role or facility must be specified";
00292         public const string USER_NAME_EMPTY = "Username is not specified (may not be left blank)";
00296         public const string USER_PASSWORD_MISSING = "User's password is not specified (may not be left blank)";
00300         public const string NAME_IS_EMTPY = "The specified object name is empty";
00304         public const string DATA_ROLE_EXISTS = "The specified data role already exists";
00308         public const string DATA_ROLE_DOES_NOT_EXIST = "The specified data role does not exist";
00312         public const string DATA_ROLE_ATTRIBUTE_EXISTS = "The specified data role attribute already exists";
00316         public const string DATA_ROLE_ATTRIBUTE_CONFLICT = "The specified data role attribute creates restriction conflict";
00320         public const string PASSWORD_MISMATCH = "Password mismatch";
00324         public const string USER_ADDED = "The new user has been added.";
00328         public const string USER_REMOVED_LOCKED = "The user account has been locked.";
00332                 public const string USER_ACTIVATED = "The user account has been activated.";
00336                 public const string USER_ACCOUNT_REQUEST_REJECTED = "The user's account request has been rejected.";
00340         public const string EDITTING_EXISTING_USER = "Edit existing user's details.";
00344         public const string ADDING_NEW_USER = "Enter new user's details.";
00348         public const string RESTORED_LOCKED_USER = "Restored previously deleted (disabled) user account.";
00352         public const string USER_DETAILS_SAVED = "User details have been successfully saved";
00356         public const string DATA_ROLE_ADDED = "The new data role has been added.";
00360                 public const string SUBCATEGORY_ADDED = "The new menu item has been added.";
00364                 public const string SUBCATEGORY_REMOVED = "The menu item has been removed.";
00368                 public const string SUBCATEGORY_SAVED = "The menu item has been saved.";
00372         public const string DATA_ROLE_SAVED = "The new data role has been saved."; //#-#
00376         public const string MESSAGEBOXRESTRICTION_SAVED = "The new Messagebox Restriction has been saved.";
00380         //#-#
00381         public const string MESSAGEBOXRESTRICTION_EDITED = "The Messagebox Restriction has been edited.";
00385         //#-#
00386         public const string MESSAGEBOXRESTRICTION_DELETED = "The Messagebox Restriction has been deleted.";
00390         public const string DATA_ROLE_ATTRIBUTE_ADDED = "The new data role attribute is added.";
00394         public const string DATA_ROLE_ATTRIBUTE_REMOVED = "The data role attribute is removed.";
00398         public const string DATA_ROLE_REMOVED = "The data role is removed.";
00402         public const string DATA_ROLE_NO_MODIFICATION = "Data role was not modified";
00406         public const string FUNCTION_ROLE_REMOVED = "The functional role is removed.";
00410         public const string FUNCTION_ROLE_ADDED = "New functional role is added.";
00414         public const string FUNCTION_ROLE_SAVED = "The functional role is saved.";
00418         public const string FUNCTION_ROLE_ATTRIBUTE_ADDED = "The functional role attribute is added.";
00422         public const string FUNCTION_ROLE_ATTRIBUTE_REMOVED = "The functional role attribute is removed.";
00426                 public const string USER_TYPE_ADDED = "The user type is added to the functional role.";
00430                 public const string USER_TYPE_REMOVED = "The user type is removed from the functional role.";
00434         public const string CULTURE_DELETED = "Culture has been deleted.";
00438         public const string CULTURE_ADDED = "Culture has been added.";
00442         public const string CULTURE_SAVED = "Culture has been saved.";
00446         public const string CULTURE_EXISTS = "Culture already exists.";
00450         public const string FUNCTION_ROLE_NAME_MISSING = "Funcitonal role name is missing";
00454         public const string FUNCTION_ROLE_NO_MODIFICATION = "Funcitonal role was not modified";
00458                 public const string FUNCTION_ROLE_IS_MANDATORY = "Functional role is a mandatory parameter.";
00462         public const string MODIFICATION_PRESS_SAVE = "Press [Apply] for saving the modificaitons";
00466         public const string FUNCTION_ROLE_EXISTS = "The specified funcitonal role already exists";
00470         public const string FUNCTION_ROLE_DOES_NOT_EXIST = "The specified funcitonal role does not exist";
00474         public const string FUNCTION_ROLE_ATTRIBUTE_EXISTS = "The specified functional role attribute already exists";
00478         public const string FUNCTION_ROLE_ATTRIBUTE_CONFLICT = "The specified functional role attribute creates restriction conflict";
00482         public const string TABLE_ADDED = "Custom table has been added";
00486                 public const string HISTORY_TABLE_ADDED = "History table has been added";
00490         public const string TABLE_GROUP_ADDED = "Custom table group has been removed";
00494         public const string TABLE_REMOVED = "Custom table has been removed";
00498         public const string TABLE_FIELD_ADDED = "New field has been added";
00502         public const string TABLE_FIELD_SAVED = "Field has been saved";
00506         public const string TABLE_FIELD_REMOVED = "Field has been removed";
00510         public const string TABLE_FIELD_ALREADY_EXISTS = "Field already exists.";
00514         public const string TABLE_FIELD_NAME_MISSING = "Field name is missing.";
00518         public const string TABLE_NAME_MISSING = "Table name is missing.";
00522         public const string TABLE_ALREADY_EXISTS = "Table already exists.";
00526         public const string CUSTOM_TABLE_NO_MODIFICATION = "Table was not modified";
00530         public const string MODIFICATIONS_SAVED = "Modifications have been saved";
00534         public const string TABLE_DOES_NOT_EXIST = "Table does not exist.";
00538                 public const string MASK_NAME_MISSING = "Mask name is missing.";
00542                 public const string SUBCATEGORY_MISSING = "Select submenu item for new table.";
00546                 public const string MASk_MISSING = "Select menu item for new table.";
00550                 public const string FIELD_IS_MANDATORY = "Field is mandatory";
00554                 public const string WRONG_INTEGER_VALUE = "Wrong integer value";
00558                 public const string WRONG_RATIONAL_VALUE = "Wrong rational value";
00562                 public const string WRONG_DATE_VALUE = "Wrong date value";
00566                 public const string WRONG_MIN_DATE_VALUE = "Date value can not be less than {0}";
00570                 public const string WRONG_DATE_RANGE_VALUES = "The until date value {0} can not be less than start date value {1}";
00574                 public const string TEXT_TOO_LONG = "Text must not be more then {0} characters long";
00578                 public const string CHANGES_SAVED = "Changes have been saved.";
00582                 public const string CHANGES_SENT_FOR_VALIDATION = "Changes have been sent for validation.";
00586                 public const string RECORD_ADDED = "Record has been successfully added.";
00590                 public const string RECORD_DELETED = "Record has been successfully deleted.";
00594                 public const string CHANGES_REJECTED = "Changes have been rejected.";
00598                 public const string RELEASE_QUESTION = "Do you really want to release changes?";
00602                 public const string DELETE_QUESTION = "Do you really want to delete this record?";
00606                 public const string DELETE_QUESTION_CUSTOM_TABLES = "Do you really want to permanently delete this table?";
00610                 public const string CREATE_HISTORY_TABLE_QUESTION = "Do you really want to create a history table for the selected table?";
00614                 public const string DELETE_QUESTION_CUSTOM_TABLE_FIELD = "Do you really want to permanently delete this field?";
00618         public const string DELETE_QUESTION_CUSTOM_TABLE_FIELD_IF_NOT_EMPTY = "This field contains data, do you really want to delete?";
00622                 public const string DELETE_QUESTION_NODE = "Do you really want to permanently delete this node?";
00626                 public const string DELETE_QUESTION_USER = "Do you really want to delete (disable) this user account?";
00630         public const string DELETE_QUESTION_FILE = "Do you really want to delete file from server?";
00634                 public const string ACTIVATE_QUESTION_USER = "Do you really want to activate this user account?";
00638                 public const string REJECT_REQUEST_QUESTION_USER = "Do you really want to reject account request for this user?";
00642         public const string DELETE_QUESTION_DATA_ROLE = "Do you really want to permanently delete this data role?";
00646         public const string DELETE_QUESTION_FUNCTIONAL_ROLE = "Do you really want to permanently delete this functional role?";
00650                 public const string DELETE_QUESTION_CUSTOM_QUERY = "Do you really want to permanently delete this custom query?";
00654                 public const string DELETE_QUESTION_CUSTOM_QUERY_PARAMETER = "Do you really want to permanently delete this custom query parameter?";
00658                 public const string DELETE_QUESTION_REPORT = "Do you really want to permanently delete this report?";
00662                 public const string DELETE_QUESTION_CONSISTENCY_CHECK = "Do you really want to permanently delete this consistency check?";
00666                 public const string DELETE_QUESTION_RECORD = "Do you really want to permanently delete this record?";
00670         public const string DISCARD_QUESTION_ROLE = "Do you really want to discard the last modification?";
00674         public const string DELETE_QUESTION_CULTURE = "Do you really want to permanently delete this culture and its translations?";
00678         public const string SAVED_TRANSLATION = "{0} translation has been saved";
00682         public const string SAVED_TRANSLATIONS = "{0} translations have been saved";
00686         public const string AUTOCOMPLETED_TRANSLATIONS = "The repeating entries have been auto-translated";
00690                 public const string MESSAGE_ADDED = "New message has been added.";
00694                 public const string MESSAGE_SAVED = "New message has been saved.";
00698                 public const string NEW_ROW_MESSAGE = "Row does not exist, yet.";
00702                 public const string ALREADY_DELETED_ROW_MESSAGE = "Row has been already deleted by another user.";
00706                 public const string DOES_NOT_EXIST_VALIDATION_DATA = "Validation data does not exist.";
00710                 public const string USER_TYPE_CAN_NOT_BE_REMOVED = "User type can not be removed from function role - there are users of this type with this functional role.";
00714                 public const string CONSISTENCY_CHECK = "{0}\n\nDo you want to continue?\nClick YES to ignore this warning and save data, NO to cancel saving and rerurn to data editing";
00718                 public const string SCRIPT_SAVED = "Script has been saved.";
00722         public const string EMAIL_SENT = "Email sent to {0}.";
00726                 public const string EMAIL_SETTINGS_ERROR = "Set SmtpServer and AdministratorEmailAccount settings in Web.config";
00730                 public const string QUERY_ADDED = "Custom query has been added";
00734                 public const string QUERY_SAVED = "The text of the query has been successfully saved in the Query table";
00738                 public const string QUERY_REMOVED = "Custom query has been removed";
00742                 public const string QUERY_IS_VALID = "Custom query is valid";
00746                 public const string QUERY_CREATED = "Custom query has been successfully compiled. You can use it for RAIS customization.";
00750                 public const string QUERY_ENTER_PARAMETERS = ". The Query contains parameters. Enter parameters properties on the Custom Query Parameters page and Compile Query after that. You will be able to use this query for RAIS customization only after successfull compilation.";
00754                 public const string QUERY_COMPILE_QUERY = ". Compile Query. You will be able to use this query for RAIS customization only after successfull compilation.";
00758                 public const string QUERY_ERROR_FORBIDDEN_STATEMENTS = "You can not use INSERT, DELETE, UPDETE statements in custom query.";
00762                 public const string QUERY_PARAMETER_ADDED = "Custom query has been added";
00766                 public const string QUERY_PARAMETER_SAVED = "Custom query has been saved";
00770                 public const string QUERY_PARAMETER_REMOVED = "Custom query has been removed";
00774                 public const string QUERY_PARAMETER_UNKNOWN_EXISTS = "Choose query parameter type for parameters of Unknown type";
00778                 public const string QUERY_PARAMETER_DATES_RANGE_ERROR = "Both: Dates Range Start ate and Dates Range End Date parameters must be present";
00782                 public const string DYNAMIC_MASK_SAVED = "Dynamic mask has been saved";
00786                 public const string REPORT_MASK_ADDED = "Report mask has been added";
00790                 public const string REPORT_MASK_REMOVED = "Report mask has been removed";
00794                 public const string CONSISTENCY_CHECK_ADDED = "Consistency check has been added";
00798                 public const string CONSISTENCY_CHECK_SAVED = "Consistency check has been saved";
00802                 public const string CONSISTENCY_CHECK_REMOVED = "Consistency check has been removed";
00806                 public const string WRONG_SEARCH_SELECT = "Wrong search SELECT! The SELECT must return at least two columns. The first column must be a row ID type of int. The second column must be type of string and will be visible in result listbox.";
00810                 public const string WRONG_NECESSITY_TYPE = "It is not possible to change a necessity type to Required if table has rows with NULL values in the column, that is expected to be changed.";
00811                 #endregion
00812         #region Names
00813 
00816         public const string TRANSLATION_CONTEXT = "Diagnostics messsages";
00820                 public const string REPORTING_CONTEXT = "Reporting";
00821                 #endregion
00822 
00826         public const string DELETE_QUESTION_MESSAGEBOX_RESTRICTION = "Do you really want to permanently delete this restriction?";
00827 
00828     }
00829 }